package com.greenhouse.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.greenhouse.business.domain.BizDeviceGroup;
import com.greenhouse.business.mapper.BizDeviceGroupMapper;
import com.greenhouse.business.service.IBizDeviceGroupService;

/**
 * 设备_分组Service业务层处理
 * 
 * @author greenhouse
 * @date 2021-05-06
 */
@Service
public class BizDeviceGroupServiceImpl implements IBizDeviceGroupService {
	@Autowired
	private BizDeviceGroupMapper bizDeviceGroupMapper;

	/**
	 * 查询设备_分组
	 * 
	 * @param id 设备_分组ID
	 * @return 设备_分组
	 */
	@Override
	public BizDeviceGroup selectBizDeviceGroupById(Long id) {
		return bizDeviceGroupMapper.selectBizDeviceGroupById(id);
	}

	/**
	 * 查询设备_分组列表
	 * 
	 * @param bizDeviceGroup 设备_分组
	 * @return 设备_分组
	 */
	@Override
	public List<BizDeviceGroup> selectBizDeviceGroupList(BizDeviceGroup bizDeviceGroup) {
		return bizDeviceGroupMapper.selectBizDeviceGroupList(bizDeviceGroup);
	}

	/**
	 * 新增设备_分组
	 * 
	 * @param bizDeviceGroup 设备_分组
	 * @return 结果
	 */
	@Override
	public int insertBizDeviceGroup(BizDeviceGroup bizDeviceGroup) {
		return bizDeviceGroupMapper.insertBizDeviceGroup(bizDeviceGroup);
	}

	/**
	 * 修改设备_分组
	 * 
	 * @param bizDeviceGroup 设备_分组
	 * @return 结果
	 */
	@Override
	public int updateBizDeviceGroup(BizDeviceGroup bizDeviceGroup) {
		return bizDeviceGroupMapper.updateBizDeviceGroup(bizDeviceGroup);
	}

	/**
	 * 批量删除设备_分组
	 * 
	 * @param ids 需要删除的设备_分组ID
	 * @return 结果
	 */
	@Override
	public int deleteBizDeviceGroupByIds(Long[] ids) {
		return bizDeviceGroupMapper.deleteBizDeviceGroupByIds(ids);
	}

	/**
	 * 删除设备_分组信息
	 * 
	 * @param id 设备_分组ID
	 * @return 结果
	 */
	@Override
	public int deleteBizDeviceGroupById(Long id) {
		return bizDeviceGroupMapper.deleteBizDeviceGroupById(id);
	}
}
